import React from 'react';
import cn from 'classnames';
import styles from './styles.less';

/**
 * 头像上覆盖的动画
 * @param {string} play 是否播放动画
 */
const RECAnimation = ({ play = true, slim = false }) => (
    <div className={cn(play ? styles.wrap : styles.wrapFreeze, slim ? styles.slim : '')}>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </div>
);

export default RECAnimation;
